package com.quantdo.qtm.linux.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import com.quantdo.qtm.linux.pojo.model.LinuxStatusCurrDo;

@Mapper
public interface LinuxStatusHistory {

    @Insert("insert into linux_status_history(curr_time,linux_server,cpu_user_used,cpu_sys_used,cpu_free,monery_total,monery_used,monery_free,monery_buffer,monery_catch"
            + ",swap_total,swap_used,swap_free,disk_total,disk_used,disk_used_rate,disk_path)"
            + "values(#{currTime},#{linuxServer},#{cpuUserUsed},#{cpuSysUsed},#{cpuFree},#{moneryTotal},#{moneryUsed},#{moneryFree},#{moneryBuffer},#{moneryCatch}"
            + ",#{swapTotal},#{swapUsed},#{swapFree},#{diskTotal},#{diskUsed},#{diskUsedRate},#{diskPath})")
    int insert(LinuxStatusCurrDo linuxDo);

}
